package com.cloud.consumer.feign;

import com.base.dto.Params;
import com.base.dto.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * Description:
 * Copyright: Copyright (c) 2023
 * Company: Ruijie Co., Ltd.
 * Create Time: 2024/7/20
 *
 * @author linke
 */
@FeignClient("cloud-producer")
public interface DemoFeignService {

    @GetMapping("/producer/get/{name}")
    Result getProducer(@PathVariable("name") String name);

    @PostMapping("/producer/post")
    Result post(Params params);
}
